#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<stdlib.h>
#include"stack.h"
int main() {
	ST s;
	StackInit(&s);
	StackPush(&s, 1);
	StackPush(&s, 2);
	printf("%d ", StackTop(&s));
	StackTop(&s);
	StackPush(&s, 3);
	StackPush(&s, 4);
	while (!StackEmpty(&s)) {
		printf("%d ", StackTop(&s));
		StackPop(&s);

	}
	StackDestroy(&s);


	return 0;
}